package com.lk.service.Impl;

import com.lk.bean.Admin;
import com.lk.bean.Student;
import com.lk.mapper.StudentMapper;
import com.lk.request.LoginRequest;
import com.lk.service.StudentService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Resource
    private StudentMapper studentMapper;

    @Override
    public Student login(LoginRequest loginRequest) {
        return studentMapper.login(loginRequest);
    }

    @Override
    public int updatePassWord(Integer id,String Password) {
        return studentMapper.updatePassWord(id,Password);
    }

    @Override
    public int delete(Integer[] ids) {
        return studentMapper.delete(ids);
    }

    @Override
    public Student findByName(String name) {
        return studentMapper.findByName(name);
    }

    @Override
    public int addStudent(Student student) {
        return studentMapper.addStudent(student);
    }

    @Override
    public int updateStudent(Student student) {
        return studentMapper.updateStudent(student);
    }

    @Override
    public List<Student> getStudentList(Student student) {
        return studentMapper.getStudentList(student);
    }

}
